package com.cqxyd.smartsite.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Angus Yu
 * @date 2020-06-13 15:30
 */
public class AttendanceRecord {
    private String workerId;
    private String entry;
    private String mode;
    private String photo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date attendanceTime;
    private String sn;
    private Integer lat;
    private Integer lng;


    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return "AttendanceRecord{" +
                "workerId='" + getWorkerId() + '\'' +
                ", entry='" + getEntry() + '\'' +
                ", mode='" + getMode() + '\'' +
                ", photo='" + getPhoto() + '\'' +
                ", attendanceTime=" + sdf.format(getAttendanceTime())  +
                ", sn='" + getSn() + '\'' +
                ", lat=" + getLat() +
                ", lng=" + getLng() +
                '}';
    }

    public String getWorkerId() {
        return workerId;
    }

    public void setWorkerId(String workerId) {
        this.workerId = workerId;
    }

    public String getEntry() {
        return entry;
    }

    public void setEntry(String entry) {
        this.entry = entry;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Date getAttendanceTime() {
        return attendanceTime;
    }

    public void setAttendanceTime(Date attendanceTime) {
        this.attendanceTime = attendanceTime;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Integer getLat() {
        return lat;
    }

    public void setLat(Integer lat) {
        this.lat = lat;
    }

    public Integer getLng() {
        return lng;
    }

    public void setLng(Integer lng) {
        this.lng = lng;
    }
}
